import request from "../axios";
const url = '/blog/comment'

const api = {
    //列表
    add(data: any) {
        return request({
            url: `${url}/add`,
            method: "post",
            data: data,
        });
    },
    update(data: any) {
        return request({
            url: `${url}/update`,
            method: 'post',
            data: data
        })
    },
    //列表
    getlist(params: any) {
        return request({
            url: `${url}/list`,
            method: "get",
            params: params,
        });
    },
    //实体
    getmodel(params: any) {
        return request({
            url: `${url}/model`,
            method: "get",
            params: params,
        });
    }
};

export default api;
